﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.ExpressApp.Editors;
using DevExpress.ExpressApp.Model;

namespace TransLogger.Module.Win.Editors
{
    public interface IModelPhotoCaptureViewItem : IModelViewItem
    {
    }

    [ViewItem(typeof(IModelPhotoCaptureViewItem))]
    public class PhotoCaptureViewItem : ViewItem
    {
        public PhotoCaptureViewItem(IModelViewItem model, Type type)
            : base(type, model.Id)
        {
        }

        protected override object CreateControlCore()
        {
            var control = new PhotoCapturerControl();
            return control;
        }
    }
}
